package com.ujoin.dao;

import java.util.List;

import com.ujoin.bean.UserMessage;

public interface IUserMessageDAO {

	public abstract void save(UserMessage transientInstance);

	public abstract void delete(UserMessage persistentInstance);

	public abstract UserMessage findById(java.lang.Integer id);

	public abstract List findByExample(UserMessage instance);

	public abstract List findByProperty(String propertyName, Object value);

	public abstract List findByReceiverId(Object receiverId);

	public abstract List findBySenderId(Object senderId);

	public abstract List findByMessage(Object message);

	public abstract List findByIsRead(Object isRead);

	public abstract List findByValid(Object valid);

	public abstract List findAll();

	public abstract UserMessage merge(UserMessage detachedInstance);

	public abstract void attachDirty(UserMessage instance);

	public abstract void attachClean(UserMessage instance);

}